import { MockMethod } from "vite-plugin-mock";
export default [
  {
    url: "/api/banner",
    method: "get",
    timeout: 1000,
    response: ({ query }: { query: any }) => {
      console.log(query);
      return {
        code: 200,
        message: "ok",
        data: [
          {
            id: "1",
            imgUrl: "../../public/images/b0.jpg",
          },
          {
            id: "2",
            imgUrl: "../../public/images/b1.jpg",
          },
          {
            id: "3",
            imgUrl: "../../public/images/b3.png",
          },
          {
            id: "4",
            imgUrl: "../../public/images/b4.jpg",
          },
        ],
      };
    },
  },
] as MockMethod[];
